package newWork.service.impl;

import newWork.dao.IOptionDao;
import newWork.entity.OptionEntity;
import newWork.service.IOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OptionService implements IOptionService {

	
	private IOptionDao dao;

	@Autowired
	public OptionService(IOptionDao dao) {
		this.dao = dao;
	}
	
	@Override
	public void add(OptionEntity entity) {
		dao.add(entity);
	}
	
	@Override
	public void delete(OptionEntity entity) {
		dao.delete(entity);
	}
	
	@Override
	public void update(OptionEntity entity) {
		dao.update(entity);
	}
	
	@Override
	public List<OptionEntity> select(OptionEntity entity) {
		return dao.select(entity);
	}

	@Override
	public Long likeSelectCount(OptionEntity optionEntity) {
		return dao.likeSelectCount(optionEntity);
	}

}
